<div class="container-fluid">
    <div id="pad-wrapper">
        <div class="table-wrapper products-table section">

            <div class="row-fluid head" >
                <div class="span12">
                    <h4>优惠券列表</h4>
                </div>
            </div>

            <form action="" method="get" name="search">
                <div class="row-fluid filter-block" style="margin-top: 15px;">

                    <div class="pull-left">
                        <a class="btn-flat success new-product" href="/coupons/add">添加</a>
                    </div>

<!--                    <div class="pull-right">-->
<!--                        主标题：-->
<!--                        <input type="text" class="search" name="title" value="jjjj"/>-->
<!--                        <a class="btn-flat success" onclick="document.forms['search'].submit();">搜索</a>-->
<!--                    </div>-->

                </div>
            </form>

            <div class="row-fluid">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th class="span3"><span class="line"></span>ID</th>
                        <th class="span3"><span class="line"></span>名称</th>
                        <th class="span3"><span class="line"></span>类型</th>
                        <th class="span3"><span class="line"></span>金额</th>
                        <th class="span3"><span class="line"></span>满金额</th>
                        <th class="span3"><span class="line"></span>发放方式</th>
                        <th class="span3"><span class="line"></span>使用范围</th>
                        <th class="span3"><span class="line"></span>发放有效期</th>
                        <th class="span3"><span class="line"></span>使用有效期</th>
                        <th class="span3"><span class="line"></span>状态</th>
                        <th class="span3"><span class="line"></span>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                        <!-- row -->
                        <?php foreach ($list as $v) :?>
                        <tr class="first">
                            <td><?= $v['coupons_id'];?></td>
                            <td><?= $v['coupons_name'];?></td>
                            <td><?= $v['coupons_type_text'];?></td>
                            <td><?= $v['coupons_money'];?></td>
                            <td><?= $v['coupons_full_money'];?></td>
                            <td><?= $v['coupons_release_type_text'];?></td>
                            <td><?= $v['coupons_use_target_text'];?></td>
                            <td><?= $v['release_start_time'].'<br>'.$v['release_end_time'];?></td>
                            <td><?= $v['use_start_time'].'<br>'.$v['use_end_time'];?></td>
                            <td><?= $v['status_text'];?></td>
                            <td>
                                <?php if(!$v['is_del']){ ?>
                                <a class="btn-flat primary btn- lg" href="/coupons/issue?id=<?=$v['coupons_id'];?>">发放</a>
                                <button type="button" class="confirm btn-flat primary btn-lg" url="/coupons/del?id=<?=$v['coupons_id']?>">删除</button>
                                <?php } ;?>

                                <?php if($v['can_edit']){ ?>
                                <a class="btn-flat primary bt1n- lg" href="/coupons/edit?id=<?= $v['coupons_id']?>" role="button">编辑</a>
                                <?php } ;?>
<!--                                <a class="btn-flat primary btn- lg" href="/coupons/coupons-list?id=--><?//=$v['coupons_id'];?><!--">查看</a>-->
                            </td>
                        </tr>
                    <?php endforeach;?>
                    </tbody>
                </table>
            </div>


        </div>
    </div>
    <div class="pagination pull-right">
        <?php echo $page;?>
    </div>
</div>




